//
//  NSString+Custom.m
//  Nicejinux.NET
//
//  Created by Nicejinux on 12. 3. 28..
//  Copyright (c) 2012년 Nicejinux.NET. All rights reserved.
//

#import "NSString+Custom.h"

@implementation NSString (Custom)

+ (NSString *)stringWith1000Unit:(NSNumber*)number
{
    NSLocale *local=[[NSLocale alloc]initWithLocaleIdentifier:@"ko_KR"];
    NSNumberFormatter *currentFormatter=[[NSNumberFormatter alloc]init];
    [currentFormatter setNumberStyle:NSNumberFormatterDecimalStyle];
    [currentFormatter setLocale:local];
    return [NSString stringWithFormat:@"%@",[currentFormatter stringFromNumber:number]];
}

+ (NSString *)stringByUrlDecoding:(NSString *)targetUrl {
	return [targetUrl stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
}

@end
